Containers in OpenStack by Pradeep Kumar Singh
Author:Pradeep Kumar Singh
Language: eng
Format: epub
Tags: COM091000 - COMPUTERS / Cloud Computing *, COM088000 - COMPUTERS / System Administration / General, COM011000 - COMPUTERS / Systems Architecture / General
Publisher: Packt Publishing
Published: 2017-12-20T08:01:25+00:00
Uploading an image to Swift
We will try to upload an image to Swift. First, check the account details:
$ openstack object store account show +------------+---------------------------------------+ | Field | Value | +------------+---------------------------------------+ | Account | AUTH_8ef89519b0454b57a038b6f044fa0101 | | Bytes | 0 | | Containers | 0 | | Objects | 0 | +------------+---------------------------------------+
We will create an images container to store all our images. Similarly, we can create multiple containers inside an account with any logical name to store different types of data:
$ openstack container create images +---------------------------------------+-----------+------------------------------------+ | account | container | x-trans-id | +---------------------------------------+-----------+------------------------------------+ | AUTH_8ef89519b0454b57a038b6f044fa0101 | images | tx3f28728ccbbe4fcabfe1b-0059b3af9b | +---------------------------------------+-----------+------------------------------------+ $ openstack container list +--------+ | Name | +--------+ | images | +--------+
Now that we have a container, let's upload an image to the container:
$ openstack object create images sunrise.jpeg +--------------+-----------+----------------------------------+ | object | container | etag | +--------------+-----------+----------------------------------+ | sunrise.jpeg | images | 243f98a9d31d140bb123e56624703106 | +--------------+-----------+----------------------------------+ $ openstack object list images +--------------+ | Name | +--------------+ | sunrise.jpeg | +--------------+ $ openstack container show images +--------------+---------------------------------------+ | Field | Value | +--------------+---------------------------------------+ | account | AUTH_8ef89519b0454b57a038b6f044fa0101 | | bytes_used | 2337288 | | container | images | | object_count | 1 | +--------------+---------------------------------------+
You can see that the image was successfully uploaded to the Swift object store.
There are many more features that are available in OpenStack, which you can read about in the user guides available for each project.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7810)
Grails in Action by Glen Smith Peter Ledbrook(7719)
Azure Containers Explained by Wesley Haakman & Richard Hooper(6862)
Configuring Windows Server Hybrid Advanced Services Exam Ref AZ-801 by Chris Gill(6861)
Running Windows Containers on AWS by Marcio Morales(6388)
Kotlin in Action by Dmitry Jemerov(5092)
Microsoft 365 Identity and Services Exam Guide MS-100 by Aaron Guilmette(5081)
Combating Crime on the Dark Web by Nearchos Nearchou(4657)
Microsoft Cybersecurity Architect Exam Ref SC-100 by Dwayne Natwick(4642)
Management Strategies for the Cloud Revolution: How Cloud Computing Is Transforming Business and Why You Can't Afford to Be Left Behind by Charles Babcock(4438)
The Ruby Workshop by Akshat Paul Peter Philips Dániel Szabó and Cheyne Wallace(4346)
The Age of Surveillance Capitalism by Shoshana Zuboff(3985)
Python for Security and Networking - Third Edition by José Manuel Ortega(3903)
The Ultimate Docker Container Book by Schenker Gabriel N.;(3568)
Learn Wireshark by Lisa Bock(3552)
Learn Windows PowerShell in a Month of Lunches by Don Jones(3530)
Mastering Python for Networking and Security by José Manuel Ortega(3376)
Mastering Azure Security by Mustafa Toroman and Tom Janetscheck(3358)
Blockchain Basics by Daniel Drescher(3329)
